﻿@using Framework.Util.Helpers
@model Project.Domain.Entities.StoreSecure

<script type="text/javascript">
    //Custom Form
    $('.custom_chk').jqTransCheckBox();
    $('.custom_rd').jqTransRadio();
    $('.custom_select').jqTransSelect();       
</script>
            
<div class="content_table">
    <table cellspacing="0" cellpadding="0" border="0" width="100%">
        <tr>
            <th class="th_no_cursor" width="40">No.</th>            
            <th class="th_left" onclick="sort('title')"><div id="title" class="sort icon_no_sort">StorePayto</div></th>
            <th class="th_left" onclick="sort('title')"><div id="title" class="sort icon_no_sort">MachentStoreName</div></th>
            <th class="th_left" onclick="sort('title')"><div id="title" class="sort icon_no_sort">SecureWord</div></th>                        
        </tr>
        @{
            var start=Convert.ToInt32(ViewBag.start);
            if (Convert.ToInt32(ViewBag.result)>0)
            {
                var i = 0;
                var count = 0;
                count = count + 1;
                var classCss = "item_row" + i.ToString();
                var idItem = "item" + i.ToString();
                <tr class="@classCss @(i%2 == 0 ? Html.Raw("row1") : Html.Raw("row2"))">					
                    <td class="td_center">@(count + start)</td>                   
                    <td class="th_left">
                        <a href="@Url.Action("Modify", "SecureStore", new {id = Model.StoreSecureId})">@Model.ConfigStorePayto</a>
                    </td>
                    <td class="th_left">
                        <a href="@Url.Action("Modify", "SecureStore", new {id = Model.StoreSecureId})">@Model.ConfigMachentStoreName</a>
                    </td>                                                                                              
                    <td class="th_last td_center">
                        <a href="@Url.Action("Modify", "SecureStore", new {id = Model.StoreSecureId})">@Model.ConfigSecureWord</a>   
                    </td>                                           
                </tr>
                i += 1;
            }
            else
            {
                <tr class="row1">
                    <td class="th_last td_center" colspan="50" style="font-size: 20px; padding: 50px 0">No data</td>
                </tr>
            }
        }
    </table>
</div>
<div class="footer_table">
    <div class="item_per_page">Items per page:</div>                    
</div>

